package com.databasir.common.exception;

import java.security.PublicKey;

public class SystemException extends RuntimeException {
   private static final String MSG_INTERNAL_SERVERS_ERROR="服务器开小差了，请稍后再试";

   public static final SystemException INTERNAL_SERVERS_ERROR=new SystemException(MSG_INTERNAL_SERVERS_ERROR);

   /**
    * @param msg the detail message
    *
    */
   public SystemException(String msg) {
     super(msg);
   }
   /**
    * @param msg   the detail message
    * @param cause the nested exception
    */
   public SystemException(String msg,Throwable cause){
      super(msg,cause);
   }

   public static SystemException internalServersErrorWithCause(Throwable cause){
     return new SystemException(MSG_INTERNAL_SERVERS_ERROR,cause);
   }
 }
